// 样式导入
import './src/styles/theme.css';
import './src/assets/styles/cover.less';

// 组件导出
export { default as CommonDrawer } from './src/components/CommonDrawer';
export { default as CommonForm } from './src/components/CommonForm';
export type { CommonFormProps, CommonFormRef, FormSection } from './src/components/CommonForm';
export { default as CommonTable } from './src/components/CommonTable';
export { default as EditableTable } from './src/components/EditableTable';
export { default as PageTemplate } from './src/components/PageTemplate';
export { default as SearchForm } from './src/components/SearchForm';
export { default as SmartBreadcrumb } from './src/components/SmartBreadcrumb';
export { default as ThemeToggle } from './src/components/ThemeToggle';

// 工具函数导出
export {
  buildActionColumn,
  buildBatchActions,
  checkRequiredFields,
  getLocale,
  getSupportedLocales,
  setLocale,
  t,
} from './src/components/utils/index';
export type { ActionButtonConfig, BatchActionConfig } from './src/components/utils/index';

// 配置构建器导出
export {
  PageTemplateConfigBuilder,
  configPresets,
  createPageTemplateConfig,
} from './src/components/PageTemplate/configBuilder';

// 类型导出
export type {
  ActionConfig,
  BatchActionConfig as BatchActionConfigType,
  CommonTableProps,
  CrudConfig,
  FormConfig,
  FormDrawerProps,
  FormFieldConfig,
  FormSection as FormSectionType,
  PageConfig,
  PageTemplateProps,
  SearchConfig,
  SearchFieldConfig,
  SearchFormProps,
  TableConfig,
} from './src/components/PageTemplate/types';

// CRUD服务导出
export { CrudService, commonCrudConfigs, createCrudService } from './src/services/crudService';
